import type { Picture } from './../types/consult.d';
import type { DepartData } from "@/types/consult"
import { request } from "@/utils/request"


/**
 * 医生科室列表
 */
export const departmentListApi = () => {
  return request.get<null, DepartData[]>('/dep/all')
}
// 2. 上传图片
export const uploadImgApi = (file: File) => request.upload<null, Picture>('/upload', file)

